package com.boyon.common.status;

import java.util.ArrayList;
import java.util.List;

import com.boyon.common.domain.Value;

/**
 * ClassName:CustomerCategoryType <br/>
 * Function: 客户分类. <br/>
 * Date: 2018年4月2日 下午10:43:48 <br/>
 * 
 * @author sunshulin
 * @version
 * @since JDK 1.8
 * @see
 */
public enum CustomerCategoryType {

	qy(0, "客户(企业)"), gys(1, "供应商"), qds(2, "渠道"), dl(3, "代理"), gr(5, "客户(个人)");

	private Integer val;

	private String desc;

	private static List<Value> list = new ArrayList<>();

	static {
		list.add(new Value(CustomerCategoryType.qy.val,
				CustomerCategoryType.qy.desc));
		list.add(new Value(CustomerCategoryType.gys.val,
				CustomerCategoryType.gys.desc));
		list.add(new Value(CustomerCategoryType.qds.val,
				CustomerCategoryType.qds.desc));
		list.add(new Value(CustomerCategoryType.dl.val,
				CustomerCategoryType.dl.desc));
		list.add(new Value(CustomerCategoryType.gr.val,
				CustomerCategoryType.gr.desc));
	}

	/**
	 * Creates a new instance of ContainerType.
	 * 
	 * @param status
	 * @param desc
	 */
	private CustomerCategoryType(Integer val, String desc) {
		this.val = val;
		this.desc = desc;
	}

	/**
	 * status.
	 * 
	 * @return the status
	 * @since JDK 1.8
	 */
	public Integer getVal() {
		return val;
	}

	/**
	 * desc.
	 * 
	 * @return the desc
	 * @since JDK 1.8
	 */
	public String getDesc() {
		return desc;
	}

	/**
	 * list.
	 * 
	 * @return the list
	 * @since JDK 1.8
	 */
	public static List<Value> getList() {
		return list;
	}
}
